﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

using transportsystem.DTO;
using transportsystem.DAO;

namespace transportsystem.BUS
{
    public class XeBUS
    {
        public static DataTable getXeList()
        {
            return XeDAO.getXeList();
        }

        public static DataTable getXeByMaDatVe(int maDatVe)
        {
            return XeDAO.getXeByMaDatVe(maDatVe);
        }

        public static DataTable getXeListByBienSo(string bienSo, int action)
        {
            return XeDAO.getXeListByBienSo(bienSo, action);
        }

        public static int getSoLuongGheByMaXe(int maXe)
        {
            return XeDAO.getSoLuongGheByMaXe(maXe);
        }

        public static bool updateXe(Xe x, int action, int tc, int gq)
        {
            return XeDAO.updateXe(x, action, tc, gq);
        }

        public static bool deleteXe(Xe x)
        {
            return XeDAO.deleteXe(x);
        }
        public static bool updateGhe(params SqlParameter[] Params)
        {
            return XeDAO.updateGhe(Params);
        }
    }
}
